package cn.gailvlun.gll.net.apartment.room;

import java.util.Date;

import cn.gailvlun.gll.net.base.Profile;
import io.realm.RealmList;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;



public class Room extends RealmObject {
    @PrimaryKey
    private int id;
    private String task_time; 
    private Profile owner;
    private int member_count;
    private String name;
    private String tag;
    private String type;
    private int member_max;
    private int member_min;
    private int day_num;
    private String desc;
    private String pic;
    private Date start_datetime;
    private Date close_datetime;
    private String code;
    private int status;
    private Date created;
    private String public_notice;
    private RealmList<Task> tasks;
    private Date censor_apply_time;
    private Date censor_feedback_time;
    private Date apply_datetime;
    private boolean is_sub;
    private RealmList<Profile> small_host_list;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTask_time() {
        return task_time;
    }

    public void setTask_time(String task_time) {
        this.task_time = task_time;
    }

    public Profile getOwner() {
        return owner;
    }

    public void setOwner(Profile owner) {
        this.owner = owner;
    }

    public int getMember_count() {
        return member_count;
    }

    public void setMember_count(int member_count) {
        this.member_count = member_count;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public RoomTag getTag() {
        return RoomTag.valueOf(tag);
    }

    public void setTag(RoomTag tag) {
        this.tag = tag.name();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getMember_max() {
        return member_max;
    }

    public void setMember_max(int member_max) {
        this.member_max = member_max;
    }

    public int getDay_num() {
        return day_num;
    }

    public void setDay_num(int day_num) {
        this.day_num = day_num;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public Date getStart_datetime() {
        return start_datetime;
    }

    public void setStart_datetime(Date start_datetime) {
        this.start_datetime = start_datetime;
    }

    public Date getClose_datetime() {
        return close_datetime;
    }

    public void setClose_datetime(Date close_datetime) {
        this.close_datetime = close_datetime;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public RoomStatus getStatus() {
        return RoomStatus.getByOrder(status);
    }

    public void setStatus(RoomStatus status) {
        this.status = status.getOrder();
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public String getPublic_notice() {
        return public_notice;
    }

    public void setPublic_notice(String public_notice) {
        this.public_notice = public_notice;
    }

    public RealmList<Task> getTasks() {
        return tasks;
    }

    public void setTasks(RealmList<Task> tasks) {
        this.tasks = tasks;
    }

    public Date getCensor_apply_time() {
        return censor_apply_time;
    }

    public void setCensor_apply_time(Date censor_apply_time) {
        this.censor_apply_time = censor_apply_time;
    }

    public Date getCensor_feedback_time() {
        return censor_feedback_time;
    }

    public void setCensor_feedback_time(Date censor_feedback_time) {
        this.censor_feedback_time = censor_feedback_time;
    }

    public int getMember_min() {
        return member_min;
    }

    public void setMember_min(int member_min) {
        this.member_min = member_min;
    }

    public Date getApply_datetime() {
        return apply_datetime;
    }

    public void setApply_datetime(Date apply_datetime) {
        this.apply_datetime = apply_datetime;
    }

    public boolean isIs_sub() {
        return is_sub;
    }

    public void setIs_sub(boolean is_sub) {
        this.is_sub = is_sub;
    }

    public RealmList<Profile> getSmall_host_list() {
        return small_host_list;
    }

    public void setSmall_host_list(RealmList<Profile> small_host_list) {
        this.small_host_list = small_host_list;
    }
}
